<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<link href="./css/ltcss.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>PayChannel</title>
<link href="styles/general.css" rel="stylesheet" type="text/css">
<link href="styles/main.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/validator.js"></script>
<link rel="stylesheet" type="text/css" href="http://ajax.pupkk.com/dojo/1.7.5/dojo/resources/dojo.css" />
	<link rel="stylesheet" type="text/css" href="http://ajax.pupkk.com/dojo/1.7.5/dijit/themes/tundra/tundra.css" />
	<script src="http://ajax.pupkk.com/dojo/1.7.5/dojo/dojo.js" djConfig="parseOnLoad:true"></script>
    <script type="text/javascript">
		dojo.require("dojo.parser");
		dojo.require("dijit.form.DateTextBox");
		dojo.require("dijit.form.FilteringSelect");
function txcheck(){
	return formvalidator("all");
}
function formvalidator(obj)
{
	var controlId = "all";
	 if (typeof(obj) != "string" )
	 {
		 controlId = obj.id;
	 }
	if(controlId=="all" || controlId=="newPassword")
	{
		if(Utils.trim(document.getElementById("newPassword").value)=="")
		{
			document.getElementById("CompareValidator1").style.visibility="visible";
			return false;
		}
		else
		{
			document.getElementById("CompareValidator1").style.visibility="hidden";
		}
	}
	if(controlId=="all" || controlId=="confirmPassword")
	{
		if(Utils.trim(document.getElementById("confirmPassword").value)!=Utils.trim(document.getElementById("newPassword").value))
		{
			document.getElementById("CompareValidator2").style.visibility="visible";
			return false;
		}
		else
		{
			document.getElementById("CompareValidator2").style.visibility="hidden";
		}
	}
	
	return true;
}

function chkAll(vl,name)
{
	var v = document.getElementsByName(name);
	for(var i=0;i<v.length;i++)
	{
		v[i].checked=vl;
	}
	
}

</script>
</head>

<body>
<form id="form1" name="form1" method="post" action="cpaccount_password_save.do" onsubmit="return txcheck();">
 <input type="hidden" id="cpaccount.createuser" name="cpaccount.createuser"  value="<s:property value="cpaccount.createuser" />" />
 <input type="hidden" id="cpaccount.createdate" name="cpaccount.createdate"  value="<s:property value="cpaccount.createdate" />" />
 <h1> 
        <span class="action-span"><a href="cpaccount_list.do">客户账号列表</a></span> <span
            class="action-span1"><a href="">
                首页</a> </span><span id="search_id" class="action-span1">- 客户账号管理 </span>
        <div style="clear: both">
        </div>
    </h1>
 <div style="margin-bottom: 5px;" class="list-div">
        <table width="100%" cellspacing="1" cellpadding="3">
            <tbody>
                <tr>
                    <th colspan="2">
                        基本信息
                    </th>
                </tr>
                <tr> 
				    <td  class="label"><div align="right">账号：</div></td> 
				    <td>
				    	<input id="cpaccount.id" name="cpaccount.id" type="hidden" value="<s:property value="cpaccount.id" />" />
        				<input id="cpaccount.name" name="cpaccount.name" type="text" size="60" value="<s:property value="cpaccount.name" />" readonly />
                    </td>
				  </tr>
				  <tr> 
				    <td class="label"><div align="right">新密码：</div></td> 
				    <td >
				     <input id="newPassword" name="newPassword" type="text" size="60"  value=""/>
                        <span id="CompareValidator1" style="color:Red;visibility:hidden;">不能为空</span><br />
                    </td>
				  </tr>
				  <tr> 
				    <td class="label"><div align="right">密码确认：</div></td> 
				    <td >
				    	<input id="confirmPassword" name="confirmPassword" type="text" size="60" value="" />
           				<span id="CompareValidator2" style="color:Red;visibility:hidden;">两次输入必须一致！</span><br />
                    </td>
				  </tr>
				  <tr>
                    <td colspan="2" align="center">
                     <s:if test="isUpdate.equals('true')">
					    <input type="submit" value=" 确定 " class="button" />
					 </s:if>
                        &nbsp;&nbsp;&nbsp;
                        <input type="reset" value=" 重置 " class="button" />
                    </td>
                </tr>
	 	</tbody>
	 </table>
 </div>
</form>
 <!--Bottom开始-->
    
<div id="footer">
<br />
<s:property value="bottom"/></div>
    <!--Bottom结束-->
  
</body>
</html>